export default {
    //按钮移动动画
    anim() {
        if (this.activeIndex === 1) {
            this.$refs.btn.style.transform = 'translateX(100%)'
            this.$refs.btn.style.transition = '0.5s'
            this.activeIndex = 2
        } else if (this.activeIndex === 2) {
            this.$refs.btn.style.transform = 'translateY(0%)'
            this.$refs.btn.style.transition = '0.5s'
            this.activeIndex = 1
        }
    },
}